<!--
 * @Author: your name
 * @Date: 2022-01-24 18:09:22
 * @LastEditTime: 2022-01-24 18:13:39
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \app\src\views\el\dataFormt\index.vue
-->
<template>
    <div>
        <div>
        数组扁平化处理
            <p>1、 {{list.flat(Infinity)}}</p>
            <p>2、 {{(list + '').split(',')}}</p>
        </div>
        <div>
        数据去重
            <p>1、 {{Array.from(new Set(list.flat(Infinity)))}}</p>
        </div>
    </div>
</template>

<script>
    export default {
        data(){
            return {
                list:[1,[2,3,[8,9]],4,[3,6],5,6,7]
            }
        }
    }
</script>

<style lang="less" scoped>

</style>